//
// Created by YE on 2024/1/8.
//

#ifndef YCH_INTERPRETER_VM_MEMORY_H
#define YCH_INTERPRETER_VM_MEMORY_H
#include "../common/ych_object.h"
#include "instruction.h"
extern Object VM_MEM[YCH_VM_MEM_SIZE];

extern Object VM_R[YCH_VM_REGISTER_SIZE];
extern Object VM_S[YCH_VM_STACK_SIZE];

extern Int VM_INT_CONST[YCH_VM_INT_CONST_SIZE];
extern Float VM_FLOAT_CONST[YCH_VM_FLOAT_CONST_SIZE];
extern void* VM_C_FUNC[YCH_VM_C_FUNC_SIZE];
extern YString VM_STR_CONST[YCH_VM_STR_CONST_SIZE ];
extern Instruction VM_I[YCH_VM_INSTRUCTION_SIZE];

#endif //YCH_INTERPRETER_VM_MEMORY_H
